package com.glory.wxelectricitypda.adapter;



import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.LockersOnTheShelvesBean;

import java.util.List;

public class LockersOnTheShelvesAdapter extends BaseQuickAdapter<LockersOnTheShelvesBean.MLOTLISTDTO, BaseViewHolder> {

    public LockersOnTheShelvesAdapter(List<LockersOnTheShelvesBean.MLOTLISTDTO> data) {
        super(R.layout.adapter_lockersontheshelves,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LockersOnTheShelvesBean.MLOTLISTDTO item) {

        helper.setText(R.id.boxNum,String.valueOf(helper.getAdapterPosition()+1));
        helper.setText(R.id.mLotId,item.getmLotId());
        helper.setText(R.id.mainQty,String.valueOf(item.getMainQty()));
        helper.setText(R.id.towarehouseId,item.gettowarehouseId());

    }

}
